package com.bjgzy.courselive.mvp.model.api;

import com.bjgzy.courselive.mvp.model.entity.CourseIntroductionData;
import com.bjgzy.courselive.mvp.model.entity.CoursePlayData;
import com.eduhzy.ttw.commonsdk.entity.CommonData;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * ================================================
 * 存放一些与 API 有关的东西,如请求地址,请求码等
 * <p>
 * Created by ArmsComponentTemplate
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * ================================================
 */
public interface Api {
    @POST("/dec/res/res/getSummaryById.jspx")
    Observable<CommonData<CourseIntroductionData>> getSummaryById(@Body Map<String, Object> map);

    @POST("/dec/res/res/getResourceDetail.jspx")
    Observable<CommonData<CoursePlayData>> getResourceDetail(@Body Map<String, Object> map);
}
